		 **************************************************************
		 **															 **
		 ** Paper: Freedom of Foreign Movement and Human Trafficking **
		 **														     **
		 ** Authors: Sam R. Bell & Richard W. Frank 				 **
		 **															 **
		 ** Date: May 12, 2021										 **
		 **															 **
		 ** Task: Table A6-Model 1 Results with varying distances 	 **
		 **															 **
		 **************************************************************
		  
									 
			clear
			version 16.1
			set seed 1234

			** Change working directory
			cd "~"
			 
			use "ht_merged.dta"		
			merge 1:1 ccode year using "ht_eba_ivs.dta"		
			global IVs "gdp_ln pop_ln"

		
			*** 1.12. CIRI, 12km
			
			probit F.source fm W_fm_con12   $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M1_12
				
				
			*** 1.24. CIRI, 24km
			
			probit F.source fm W_fm_con24   $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M1_24
				
				
			*** 1.150 CIRI, 150km
			
			probit F.source fm W_fm_con150   $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M1_150
								
				
			*** 1.400 CIRI, 400km
			
			probit F.source fm W_fm_con400   $IVs , robust cluster (ccode) 
				
				tab year if e(sample)
				codebook ccode if e(sample)	
				estat ic
				estimates store M1_400
									
			esttab M1_12 M1_24 M1_150 M1_400 using "model1_distances.csv", replace ///
			title(Model 1: various distances, probit results) ///
			obslast label se nogaps scalars(N pr2)  star(* 0.05 ** 0.01 *** 0.001)  
